#ifndef     __DISPLAY_H
#define     __DISPLAY_H

#include "../utils/object.h"
#include "../utils/nocopyable.h"
#include <stdint.h>

namespace driver {

enum Align_t {
    Right = 0,
    Left = 1,
};

class Display_t : private utils::NoCopyable_t {

public:
    Display_t();

    static void show(uint8_t h4, uint8_t h3, uint8_t h2, uint8_t h1);
    static void show(Align_t align, uint8_t val);

    static void show_price(Align_t align);
    static void set_price(uint8_t price);

    static uint8_t price();

    static void write_byte(uint8_t byte);
};

extern utils::Object<Display_t> display;

}


#endif
